package org.zk.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @ClassName MainController
 * @Description TODO
 * @Author 李帅
 * @Date 2020/2/13 14:07
 * @Version 1.0
 **/
@RestController
public class MainController {

    @RequestMapping("/")
    public ModelAndView toIndex(){
        return new ModelAndView("/index");
    }


    @RequestMapping("/index")
    public ModelAndView index(){
        return new ModelAndView("/index");
    }

    @RequestMapping("/login")
    public ModelAndView toLogin(){
        return new ModelAndView("/login");
    }

    @RequestMapping("/detail")
    public ModelAndView toDetail(){
        return new ModelAndView("/detail");
    }

    @RequestMapping("/user")
    public ModelAndView toUser(){
        return new ModelAndView("/user");
    }
    @RequestMapping("/regist")
    public ModelAndView toRegist(){
        return new ModelAndView("/regist");
    }


}